package com.kgc.easyshopping.entity;

import org.apache.solr.client.solrj.beans.Field;

import java.util.Date;
import java.util.List;

public class Order {
    @Field("id")
    private String oid;
    @Field("userid_s")
    private String userid;
    @Field("loginname_ik")
    private String loginname;
    @Field("useraddress_s")
    private String useraddress;
    @Field("createtime_dt")
    private Date createtime;
    @Field("cost_f")
    private Float cost;
    @Field("serialnumber_s")
    private String serialnumber;
    @Field("isdel_i")
    private Integer isdel;
    //详情
    private List<Detail> details;

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname == null ? null : loginname.trim();
    }

    public String getUseraddress() {
        return useraddress;
    }

    public void setUseraddress(String useraddress) {
        this.useraddress = useraddress == null ? null : useraddress.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Float getCost() {
        return cost;
    }

    public void setCost(Float cost) {
        this.cost = cost;
    }

    public String getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber == null ? null : serialnumber.trim();
    }

    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    public List<Detail> getDetails() {
        return details;
    }

    public void setDetails(List<Detail> details) {
        this.details = details;
    }
}